package com.butterfly.hotkey.dashboard.biz.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 变更日志
 * </p>
 *
 * @author butterfly
 * @since 2024-11-05
 */
@TableName("hk_change_log")
public class ChangeLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 业务key
     */
    private String bizId;

    /**
     * 业务类型：1规则变更；2worker变更
     */
    private Integer bizType;

    /**
     * 原始值
     */
    private String fromStr;

    /**
     * 目标值
     */
    private String toStr;

    /**
     * 数据所属APP
     */
    private String appName;

    /**
     * 防重ID
     */
    private String uuid;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新人
     */
    private String updater;


    public Integer getId() {
        return id;
    }

    public ChangeLog setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getBizId() {
        return bizId;
    }

    public ChangeLog setBizId(String bizId) {
        this.bizId = bizId;
        return this;
    }

    public Integer getBizType() {
        return bizType;
    }

    public ChangeLog setBizType(Integer bizType) {
        this.bizType = bizType;
        return this;
    }

    public String getFromStr() {
        return fromStr;
    }

    public ChangeLog setFromStr(String fromStr) {
        this.fromStr = fromStr;
        return this;
    }

    public String getToStr() {
        return toStr;
    }

    public ChangeLog setToStr(String toStr) {
        this.toStr = toStr;
        return this;
    }

    public String getAppName() {
        return appName;
    }

    public ChangeLog setAppName(String appName) {
        this.appName = appName;
        return this;
    }

    public String getUuid() {
        return uuid;
    }

    public ChangeLog setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public ChangeLog setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreator() {
        return creator;
    }

    public ChangeLog setCreator(String creator) {
        this.creator = creator;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public ChangeLog setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getUpdater() {
        return updater;
    }

    public ChangeLog setUpdater(String updater) {
        this.updater = updater;
        return this;
    }

    @Override
    public String toString() {
        return "ChangeLog{" +
                "id=" + id +
                ", bizId=" + bizId +
                ", bizType=" + bizType +
                ", fromStr=" + fromStr +
                ", toStr=" + toStr +
                ", appName=" + appName +
                ", uuid=" + uuid +
                ", createTime=" + createTime +
                ", creator=" + creator +
                ", updateTime=" + updateTime +
                ", updater=" + updater +
                "}";
    }
}
